$OpenBSD: patch-provider_libserver_ECSessionGroup_cpp,v 1.9 2016/04/20 18:38:41 robert Exp $
--- provider/libserver/ECSessionGroup.cpp.orig	Wed Apr 20 13:13:54 2016
+++ provider/libserver/ECSessionGroup.cpp	Wed Apr 20 19:54:13 2016
@@ -22,6 +22,10 @@
 
 #include <algorithm>
 
+#ifdef __OpenBSD__
+#include <pthread.h>
+#endif
+
 #include "ECSession.h"
 #include "ECSessionGroup.h"
 #include "ECSessionManager.h"
@@ -31,6 +35,11 @@
 #define new DEBUG_NEW
 #undef THIS_FILE
 static const char THIS_FILE[] = __FILE__;
+#endif
+
+#ifdef __OpenBSD__
+#define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE
+#define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP PTHREAD_MUTEX_INITIALIZER
 #endif
 
 class FindChangeAdvise
